namespace MyBlog.DataEntity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class Tbl_Category
    {
        public Tbl_Category()
        {
            Tbl_Article = new HashSet<Tbl_Article>();
        }

        public int ID { get; set; }

        [Required]
        [StringLength(50)]
        public string AccountId { set; get; }

        [Required]
        [StringLength(50)]
        public string CategoryName { get; set; }

        [ForeignKey("AccountId")]
        public virtual Tbl_Account Tbl_Account { get; set; }

        public virtual ICollection<Tbl_Article> Tbl_Article { get; set; }
    }
}
